<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/page/common/common_header.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>排班规则</title>

<script src='${baseURL }/js/jquery.min.js'></script>
<script src='${baseURL }/js/common/addTab.js'></script>

<script type="text/javascript" src="http://10.0.250.52/uidev/package/js/itcui.dev.js"></script>
<link rel="stylesheet" type="text/css" href="http://10.0.250.52/uidev/package/css/itcui.dev.css" media="all"/>

<!-- toolbar css  -->
<link rel="stylesheet" type="text/css" href="${baseURL }/css/content_table.css" media="all" />
<link rel="stylesheet" type="text/css" href="${baseURL }/css/itcui.css" media="all" />
<link rel="stylesheet" type="text/css" href="${baseURL }/css/base.css" media="all" />

<script>
	var testData = [ {
		"id" : "1",
		"ruleId" : "100001",
		"ruleName" : "运行排班",
		"zhibie":"A值,B值,C值,D值,E值",
		"zbNum":"5",
		"banci":"早班,中班,夜班,休息",
		"bcNum":"4",
		"turns":"3"
	}, {
		"id" : "2",
		"ruleId" : "100002",
		"ruleName" : "运行排班",
		"zhibie":"A值,B值,C值,D值,E值",
		"zbNum":"5",
		"banci":"早班,中班,夜班,休息",
		"bcNum":"4",
		"turns":"3"
	}];

	$(document).ready(function() {

		$("#contentTb").datagrid({
			"pagination" : false,
			"fitColumns" : true,
			"data" : testData,
			singleSelect:true,
			onDblClickRow: function(rowIndex){
				//alert(rowIndex);
				var url = "${baseURL}/page/schedule/scheduleRulesDetail.jsp";
				var id=rowIndex+1;
				addTab( "scheduleRulesDetail"+id, "规则详情"+id, url );
				
			}
		});
		
		$("#btn_advlocal").click(function() {
			if ($(this).hasClass("active")) {
				$("#contentTb").ITCUI_GridSearch("end");
			} else {
				$("#contentTb").ITCUI_GridSearch("init");
			}
		});
		
		//ITCUI_FixTableChkBox();
	});
</script>

</head>
<body class="ml12 mr12 mt12">
	<div id="content">
		<div class="toolbar">
			<div class="btn-group btn-group-sm" style="float: left;">
				<button type="button" class="btn btn-default" data-toggle="button" id="btn_advlocal">高级搜索</button>
			</div>
			<div id="btn_setting" class="itcui_btn_circle fr"
				style="margin-right: 2px">
				<span class="itcui_btn_circle_setting itcui_btn_circle_icon"></span>
			</div>
			<div class="itcui_btn_circle fr" style="margin-right: 2px">
				<span class="itcui_btn_circle_next itcui_btn_circle_icon"></span>
			</div>
			<div class="itcui_btn_circle_disable fr" style="margin-right: 2px">
				<span
					class="itcui_btn_circle_prev_disable itcui_btn_circle_icon_disable"></span>
			</div>
			<div class="itcui_pager fr" id="pager">
				<span style="line-height: 22px">1/5</span><img
					src="${baseURL }/images/pager_arrow.png" />
			</div>
		</div>
		<table class="easyui-datagrid" style="clear: both" width="100%"
			cellspacing="0" id="contentTb">
			<thead>
				<tr style="height: 24px">
					<!-- <th data-options="field:'ck1',checkbox:true"></th> -->
					<!-- <th width="26" data-options="field:'id'">序号</th> -->
					<th width="120" data-options="field:'ruleId',fixed:true">规则编号</th>
					<th width="120" data-options="field:'ruleName',fixed:true">规则名称</th>
					<th width="160" data-options="field:'zhibie',fixed:true">值别</th>
					<th width="80" data-options="field:'zbNum',fixed:true">值别数</th>
					<th width="160" data-options="field:'banci',fixed:true">班次</th>
					<th width="80" data-options="field:'bcNum',fixed:true">班次数</th>
					<th width="80" data-options="field:'turns',fixed:true">轮换周期</th>
					<th width="1" data-options="field:'none'"></th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</html>